import request from '@/utils/request'
// import store from '@/store'
// 获取我的用户信息
export const userProfile = () => {
  return request({
    url: '/v1_0/user/profile',
    needToken: true
    // headers: {
    //   Authorization: `Bearer ${store.state.token.token}`
    // }
  })
}
// 编辑用户信息
export const userProfilePatch = data => {
  return request({
    url: '/v1_0/user/profile',
    method: 'patch',
    data
  })
}
// 头像上传
export const userPhotoPatch = data => {
  return request({
    url: '/v1_0/user/photo',
    method: 'patch',
    data
  })
}
